<%@page import="com.bean.User"%>
<%@page import="com.dao.Login"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<script src="./jquery-2.1.4/jquery.js"></script>
<title>登陆页面</title>
<style type="text/css">
#div {
	background-color: aliceblue
}

#two {
	margin: 40px
}
</style>
<script>
	window.onload = function() {
		setInterval(function() {
			getDate();
		}, 1000);
	}

	function getDate() {
		var gettime = document.getElementById("div0");
		var date = new Date();
		var year = date.getFullYear();
		var month = date.getMonth();
		var data = date.getDate();
		var hours = date.getHours();
		var minute = date.getMinutes();
		var second = date.getSeconds();
		var time = year + '-' + f(month + 1) + '-' + f(data) + ' ' + f(hours)
				+ ':' + f(minute) + ':' + f(second);
		gettime.innerHTML = time;
	}

	function f(str) {
		var num;
		str >= 10 ? num = str : num = '0' + str;
		return num;
	}
</script>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<div id="div0" style="margin-left: 90%"></div>
	<div align="center" id="div">
		<h1>登陆界面</h1>
		<form action="./index.jsp" id="one">
			<table border="0" cellspacing="0" align="center" id="two">
				<tr>
					<th align="right">账号：</th>
					<td><input type="text" id="id" name="id"></td>
				</tr>
				<tr>
					<th align="right">密码：</th>
					<td><input type="password" id="pwd" name="pwd"></td>
				</tr>
			</table>
			<input type="submit" id="but1" value="登陆"><br> 点击进行 <a
				href="./register.jsp">注册账号</a>
		</form>
	</div>

</body>
</html>
